package pers.cmc.mysql.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * mysql的配置类
 * @author EDY
 */
@Data
@ToString
@EqualsAndHashCode
public class MysqlConfig {
    private String host;
    private String port;
    private String user;
    private String password;
    private String database;
    private ReadisConfig readisConfig;

    /** 连接数 默认5条 */
    private int maxConnect = 5;


    public MysqlConfig(){}
    public MysqlConfig(String host, String port, String user, String password, String database) {
        this.host = host;
        this.port = port;
        this.user = user;
        this.password = password;
        this.database = database;
    }



}
